<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%retarget_site}}".
 *
 * @property integer $id
 * @property string $tag
 * @property integer $advertiser_id
 * @property string $url
 * @property string $retarget_check_url
 * @property integer $retarget_type_id
 * @property integer $status
 * @property string $last_update
 */
class RetargetSite extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%retarget_site}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['advertiser_id', 'retarget_type_id', 'status'], 'integer'],
            [['url', 'retarget_check_url'], 'required'],
            [['last_update'], 'safe'],
            [['tag'], 'string', 'max' => 128],
            [['url', 'retarget_check_url'], 'string', 'max' => 1024]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'tag' => 'Tag',
            'advertiser_id' => 'Advertiser ID',
            'url' => 'Url',
            'retarget_check_url' => 'Retarget Check Url',
            'retarget_type_id' => 'Retarget Type ID',
            'status' => 'Status',
            'last_update' => 'Last Update',
        ];
    }
}
